-
-
Notifications
You must be signed in to change notification settings - Fork 632
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow alternate nodejs binaries #7405
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome!
Thanks! Delegating to @blorente , who is going to be looking at some other nodes.js stuff this week. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great! I've been meaning to do this for each of our no-op scripts in https://github.com/pantsbuild/binaries but haven't gotten around to it. I'm pretty enthusiastic about this, it's not clear that other build tools decide that reliably providing specific versions of the tools they rely on is part of their purview and avoiding having to re-provision your laptop/CI environment for every single tool you want to use is part of why I want to write build tools in the first place.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! This looks great :)
f0bad1a
to
6aee5f4
Compare
The binary is extracted into a directory following the naming of the version and system id (ex. node-v8.11.3-darwin-x64)
6aee5f4
to
f79ea33
Compare
### Problem (and solution) Same as #7405 [Slack thread](https://pantsbuild.slack.com/archives/C046T6T9U/p1565633047078400) that highlighted this issue. ### Result Users can now use any supported `yarn` release. Related `binaries` repo script for building yarn [`here`](https://github.com/pantsbuild/binaries/blob/master/build-yarnpkg.sh).
Problem
Attempting to use the latest node LTS (10.15.3 - the latest LTS released March 5th) fails to install in
pants
as it seems the binary is not inpants
' s3 - as seen in the error returned bypants
:The issue of binaries in s3 has come up before in another context (the motivation there was related to bandwidth costs, not unavailable binaries), and a solution was implemented for
go
andllvm
in #5780.Solution
This continues the work done in the #5780, leveraging the
BinaryToolUrlGenerator
to allow node binaries to be fetched fromnodejs.org
(see full list of binaries for the latest LTS release here).Result
Users can now use any supported node release from
nodejs.org
- verified locally (on a Mac using the latest LTS)